swap write_to_chat back to without .js