Added .jshintrc and fixed some of the errors
- removed all jshint errors