Update connection.js