Adding generateLocationMessage in the message.js file