Hi Joyce,
We do that sometimes only, when we get certain optimization results after we've seen the end of the document. It's not pretty (or technically correct) but it works in all browsers we've tested against.
That said, we have a new release coming out later this week that should eliminate that case entirely, so they will always be before the final </html>.
Thanks! m.