updates parse-xml to use phantomjs

Use phantomjs parse-xsd.js in the root directory to execute the script, the output is written to output/defaults.js.

The core functions have been refactored so processComplexType is no longer declared in handleXML.