added string.splitlines and fixed newline "\n" in `with javascript:` blocks