adding Travis CI config and fixes to main.js