HTML5 network connectivity example