Bug fix. Newlines were getting stripped because we were using a input on the writeFileAndOPen instead of textarea