Moved separate var declarations to compound style

This tends to be the preferred syntax for declaring groups of variables.  It is also faster: http://jsperf.com/different-styles-of-var-declaration