Adding question / example of javascript promises and deferreds.