Using Esri's JavaScript API with AngularJS