backed up old messy app.js file cleaner version updated