IE 8 support

Addresses issue #25. All but one test passes, but that test fails on the master branch as is.