fix corrupt app.js