Choose a statement or array output for your pasted HTML. The reverse option handles the expected document.writeln format, not arbitrary JavaScript.