update product for js problem