Also because of hoisting you could put this on line 2. 

http://code.tutsplus.com/tutorials/javascript-hoisting-explained--net-15092