code: function newline_toDos(s) {
      s = s.replace(/\r\n/mg, "\n");
      s = s.replace(/\n/mg, "\r\n");
      return s;
  }
docs: convert all UNIX new line("\r\n") to DOS new line("\n") in
  a String "s".
  @param {String} s string
  @return {String} converted string