plugin to phonegap 3.0.0