reactor: check chat type argument against constants
implement an input area for sending messages
initialize classes with vanilla javascript