isOnline is a javascript plugin to check if Internet connectivity is available.