declare variable

undeclared variables cause to bugs in IE
Merge pull request #45 from Maxsh/master

declare variable