Fix JavaScript unit test suite. Whoops!