[minor] Set the correct window reference
[fix] Added readyStates and `start`/`stop` events