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
But I imagine we will want to click/focus before?