Converted the client app.js file from CoffeeScript to JavaScript