All variables within a block of code [should be declared at the top of the scope](http://javascript.crockford.com/code.html#variable%20declarations).