javascript product test fix