fix js error on product page