fix failing js tests