Fixing IE8 JavaScript error.  Fixes #20.