Cleaned up some code in readMessage.js