Simple XML to JavaScript object deserializer