added connect, updated web.js