fixed plugin interface to match phonegap 3.x expectations.