Plugin compatible with apache cordova 3.4.0