Add travisci hook. Fix some jshint issues.