checking if cordova would work on the server