Move document.write inside <body>