added basic JS syntax error feedback