Finished emergency feature in the server.js file