Update cordova.js

Fix the bug pause and resume event do not call correctly.