Removed extraneous function from app.js