Wrap the innerHTML mutation for safari