JavaScript module for detecting connection features and issues