結果 : javascript check if user has internet connection