Fixes the js tests