Account for lack of document.body in firefox