Use $.parseXml for parsing string as XML
Small formatting change

Needed to change spacing to pass through jshint