I follow jslint here and declare variables always on top of the function body as its done by js hoisting anyways.