Javascript Replace Newline With Space