Adapt to future changes in Cordova 4.0 (evaljs)