Remove onReady triggering in writeHtml