rewrite highlighter.js code