The order of the xml attributes sent matters. lets switch to using `Object.map()` for a ordered list. More to read [here](http://www.jstips.co/en/map-to-the-rescue-adding-order-to-object-properties/)