Correct JS error