Add jshint, fix some style mistakes.