No WiFi, detecting offline states with HTML5