Enable formatAs raw and switch chat.js to use com module