Fixed JSHint and updated xml.js and test/docs