working on creating ESRI js wrapper