Fix for issue #24

Internet Explorer has issues with var declarations without the word var, apparently when a var is re declared later. This fixes issue #24 but I recommend checking all code to avoid further incompatibilities
Merge pull request #29 from gerard-kanters/patch-1

Fix for issue #24