Use Ractive.js with promises/deferreds