update window.close in app/controllers.js for cordova test