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