Update parser.js

Hi, I added \r as linebreak (for mac users).