AngularJS model baseclass