fixed (sort of) app.js