Removed redundant code from app.js