Checking Connection

added ability to check for internet connection via Javascript (not 100%
that it is currently working)