Illustration of JavaScript Callbacks vs Promises (using Q library)