Handle modify object event

Resolves https://github.com/codio/diffop/issues/1