Replaced `window` with `JsSIP.global`.