modularized the js for product management