js product display bug fix