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
Do you need the last argument to `executeScript`? `content` is not being used?