Update main.js

PubAddress is not `.bind()`ed, but `.connect()`ed...