Reverted to ES5 compatible definition for Safari