Get JS test suite running

This is very much a work in progress