AngularJS bespoke.js directive