[Update] Switch to native html5 navigator.onLine to recognise online status