Upgraded xml2js to fix problem with reading newlines, also added tests!