Fixed the javascript tests

When javascript tests are run we no longer get any errors. It seems that the tests weren't updated since the modules were split in two.