 <p>In the code you posted, <code>this</code> is the global <code>window</code> object. When you create a function in the default global scope (like <code>get_denomination</code>) it gets attached as a property to the <code>window</code> object.</p>