Modified signature for plugin methods.

I would like to try this plugin. Though signature for plugin method was too old to use this with phonegap3.
So I modified signatures.