cleaned client app.js file