Moving js to products.js