javascript business object modelling , angularjs business object modelling