Add missing `var` keywords.

My JS ninja scrolls tell me it's important to have these around.