Add support for IE8

This may be able to be optimized / done better but seems to work in IE8 now. Would love some feedback and testing.