Made this work in IE >= 9

Fixes #4