Port of NativeControls Cordova/PhoneGap plugin to Cordova 3