Local variables should always be in the beginning of the function, performs better, and performs much better if they are declared in just one line. As we are using Google closure for the compilation it doesn't matter at the end.