Add travis configuration and fix jshint issues