Add JavaScript integration tests

This also puts all tests on a test hostname on the Travis environment.