Add JavaScript tests to Travis CI