Fixed compatibility to Cordova 2.6