Issue: #3 - fixing references to document.body when no document.body is defined