Plugin ported to phonegap 3