Fixing error with products.js being loaded on other pages