Rearranged model.js to match Ng version which is passed into datacontext
Added comments