Update for complie with cordova 3.0