Added message prototype and submit listener for chat box.