Hg given insert

This adds a new helper whenInsertingHTMLOf which replicated the behaviour of calling insertHTML instead of directly setting innerHTML. Functionally, it is the same as givenContentOf
We shouldn't need to focus afterwards?