MDL-28261 Javascript: Check for a working connection in SCORM activities