Ciało referencyjne 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