title: JavaScript function order: why does it matter?
body: <h3>Original Question:</h3>
  <p><a href="http://www.jshint.com/" rel="noreferrer">JSHint</a> complains when my JavaScript calls a function that is defined further down the page than the call to it. However, my page is for a game, and no functions are called until the whole thing has downloaded. So why does the order functions appear in my code matter?</p>
  <h3>EDIT: I think I may have found the answer.</h3>
  <p><a href="http://www.adequatelygood.com/2010/2/JavaScript-Scoping-and-Hoisting" rel="noreferrer">http://www.adequatelygood.com/2010/2/JavaScript-Scoping-and-Hoisting</a></p>
  <p>I am groaning inside. Looks like I need to spend ANOTHER day re-ordering six thousand lines of code. The learning curve with javascript is not steep at all, but it is very loooooong.</p>