JavaScript Math Chat Room