separated out directives into products.js file