[Master] Add JS testing/linting to Travis

- Add mocha
- Add jshint
- Move travis scripts to separate files