Fixed the javascript tests.