Remove onReady triggering in writeHtml

fixes the issue where window.onReady is fired twice on client side page render