Model mapper for AngularJS