cleaned up products.js, working well