added missing var

without "var" before those variables get attached to the "window" object