[docs] Update confusingly broken example to work

Fix naming (non-existing function `callbackTakingFunction` & API method `require("when/node/function").nodeStyleAsyncFunction`), and make example runnable via copy paste.