Refactor highlight to general purpose editor

The functionality of highlight.js is now wrapped in the Editor class.
Fix misc. jshint warnings