 <p>If you've posted your code correctly, the problem is with Coffeescript.</p> <p>According to the translator at <a href="http://coffeescript.org" rel="nofollow">coffeescript.org</a>, your future translates to</p> <pre><code>myFuture = new Future; popular_imgs = function() { ... }; </code></pre> <p>This is obviously not what you want. The fix is simple:</p> <pre><code>myFuture = new Future -&gt; Insta.media.popular (img, err)-&gt; myFuture.return img </code></pre>