JSHint integration

- Added JSHint dev dependency
- Added JSHint default settings
- Fixed issues in code to comply with jshint
- Added test script to run jshint against JS files
- Updated documentation
Travis CI setup

- Adding initial travis configuration file