Create Javascript XML Formatting