Remove unneeded functions from app.js