Called from a JavaScript event after it has done everything appropriate in JS land towards saving a page, in the process of wrapping up this page before moving to another. The main point is that any changes on this page get saved back to the main document. In case it is an origami page, there is some special stuff to do as commented below. (Argument is required for JS callback, not used).