Debugging connectivity test

moved function outside document.ready to see if it loads on app launch.