[javascript] What are alternatives to document.write?