Implementing Mansory in Angular.js