add javascript script syntax error reporting