Fixed 'self' variable in Safari (desktop & iOS)

The old method to set 'self' variable worked incorrectly in Safari web browsers. So I propose the fix to make it work good on all browsers & nodejs as well.
That's true, but saying
> always use `===`

is a much simpler styleguide. :sunglasses: