added connect.js