Improved IE8 compat
Merge pull request #50 from brendanmoore/master

Improved IE8 compat