Plugin for phonegap 3