Prevent ReferenceError on Safari, fixes #80