Add JSON-Patch JavaScript implementation