Correction in JS syntax