Made this work in IE >= 9

See #4