Rewrite JavaScript syntax highlighting