Fixed most failing js tests