connection error handling in js edited