added jshint support & fixed up a couple of files