Fix for IE 9+

Fixes #23 (+1 squashed commit)
Squashed commits:
[e66be62] Fix for IE 9+

Fixes #23