Update formatting of file.js and add xml2js to package.json