fixed equality for js.Object