make js tests pass