Improved connection warning JS (#54)