fixed no body bug

sometimes bundle.js loads before document.body is initialized, causing crash and burn.