MDL-28261 Javascript: Check for a working server connection