Added JS unit tests and Travis CI