sorted js tests