Hoist var declaration to parent scope