moves directives to products.js