Simple ajax feedback widget wrapped in an angular.js directive