fixed syntax highlighting for JavaScript errors identified by JSHint