created js for product

????? probably not doing this right