Update connector.js