Fix JS syntax error