Fixes for Gamepad plugin- data handling and Cordova requirements