Some example to show how to use promises in nodejs