corpo de referência js
var body = document.getElementsByTagName("BODY")[0]; //bad way
document.body //good way
Google
var body = document.getElementsByTagName("BODY")[0]; //bad way
document.body //good way