AngularJS proxy-directive factory