Add support for Safari and IE11

Resolves issues #1