AngularJS directive for Rangy lib