JS integration tests

Continuing discussion on PR #38