document.body not always loaded