Fix Safari 8
Merge pull request #3 from gBokiau/fix-safari-8

Fix Safari 8, closes #2