Fixed connection.js