Move the add event listener code to be in the same place where we call connect so there is only one place to do it.
Move the add event listener code to be in the same place where we call connect so there is only one place to do it.

LLK/scratch-vm,LLK/scratch-vm,LLK/scratch-vm