Replace dropboxOk with online established from window.navigator.onLine and amended initialisation code

...h was not acessed by not trying to connect to Dropbox