fixed JS syntax error