Added parsing code to make PlistParser.parse work in browsers

The API was inconsistent, requiring a string if run in Titanium but a DOMDocument in the browser. Added parsing code to accept a string if in the browser.