I think you can do this all with on var statement and then use commas. That is the more conventional way to initialize vars. Also, given hoisting, do all this a the beginning of the method.