Allow tests to run in IE8

Tests currently fail with JS errors in IE8. These commits allow the test suite to run, so that failing tests can be fixed (the `text/css` thing is purely cosmetic).
Whoa, good catch. I thought I fixed both of these but I guess just the one.