Update json-patch-duplex.js

exposing the compare method.