rm globals cordova devices