phonegap3 plugin attempt