Remove unnecessary code in app.js for client side authentication