`angular-model.js` needs to be refactored. In addition to any additions, improvements, or new features, the code complexity should be reduced.