Associative Arrays

Lets say that each department has a featured product.

Note that some documentation says that JavaScript does not support associative arrays with named indexes. It will redefine the array as an object. Some documentation also says to avoid newArray() but use [] instead.