Handle IE8. Fixes #16