map for AngularJS work