anguage-javascript line-numbers"><code class="javascript language-javascript"><span class="token comment">// Note: jQuery AJAX methods return promises</span>
<span class="token keyword">var</span> usernamesPromise <span class="token operator">=</span> Ember<span class="token punctuation">.</span>$<span class="token punctuation">.</span><span class="token function">getJSON</span><span class="token punctuation">(</span><span class="token string">'/usernames.json'</span><span class="token punctuation">)</span>