implementing phonegap plugins example