Magical constants should be avoided at all cost, since it makes the code extremely difficult to maintain.

Also, even though this kind of variable declaration is legal JavaScript syntax, it's best to avoid this. Since you access this variable outside of the current block, the variable declaration should be moved up.