Upgraded to Esris 3.4 Javascript api