fixing some of the failing js tests