The code assings `window`to `window.jsondiff`. To fix, replace the line ``` return root.jsondiff = factory(root, {}) ``` by ``` return root.jsondiff = factory(root, {}).diff; ```
The code assings
windowtowindow.jsondiff. To fix, replace the lineby