Update checkConnection.js