Cordova 3.0.0 plugin to detect device type (phone/tablet)