Don't inject JS into a chunk of HTML that isn't the end of a page