fixes js tests