added preference for latest phonegap