No need to reset documentElement and body.

And I think it would be easier to read if you'd put each reset in a separate line in the same order they appear at the bottom of the file, this makes it easier to check if one is missing.