Removed deprecated APIs for compliance with Cordova 3.0