Add jshint and correct all the small isues that there were.
Merge pull request #9 from DevAlien/42-add-jshint

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