Add jshint and correct all the small isues that there were.