javascript file of details of a product