moved the products related code to the Catalog.js file.