IE bug fix

Toggle doesn't work without "var".