Add travis configuration file
Fix some jshint warnings
Add a sample test