Insert missing "var" statement

My limited JavaScript knowledge says this isn't strictly necessary
in this context, but stylishness is next to godliness.