Make variable declartions idiomatic with the node.js style guide

It's a generally-accepted best practice to put `var` declarations on their own line when writing for node.js.

http://nodeguide.com/style.html#variable-declarations