Fix: Empty newlines throw SyntaxErrors

Also switching newline matching from '\n' to /\r\n|[\n\r\u2028\u2029]/g