making the javascript tests pass