added helper function for sharing d3 output

This adds a new function to bkHelper - updateDocumentModelFromDOM -
that can be used by JavaScript plugin to update the display of an HTML
cell in order to share it.