Example using angular.js and faye