Review handleMessageSentByJavaScript