Fix for "e is undefined"

Resolves issue #29 in Safari & Mobile Safari