AngularJS directive to modify moment.js duration objects