update installation instructions
fix a bunch of jshint errors