Syntax highlighting for JavaScript fragments