example of get request to a server online (works on cordova but not web-app)