Debug PhoenixJs, fixed window.cordova bug