debug this plugin, now it works in phonegap 3.1