javascript: adding `this.` messed IPConnection logic!
Revert "javascript: added `this.` in for user provided connect/disconnect callbacks"

This reverts commit ec6ccdec8e054d673de216b64e8321ef9011674f.
javascript: removed unused variable `this.autoReconnectPending`