Update is_device = window.cordova