A more reliable DOM injection