Fixed failing js tests