jQuery Deferred library for node js