Try to see if it is easy to integrate electron to draw the diff instead of the browser. Check: https://github.com/dominictarr/electro