jQuery, q library, AngularJS, Node.js promise examples