Evidently you have to write your own arraysEqual method in javascript...