Differentiating devices + removing cordova code