Removed various unneeded functions from app.js