fixes IE8
Merge pull request #963 from bitovi/ie-2-1-fixes

fixes IE8