Fix Uncaught TypeError: Cannot set property 'outerHTML' of null

Fixes re-init issue when the script attempts to run again after wrapping
DOM with action like `jQuery.wrapInner()` by removing the encode email
script at the end.

Also combined multiple var definitions into one, removed unnecessary
spaces around ' === -1'.