removed unwanted console.log()s
Persisted the message to local storage after sending it
checked the packet for correct keys