Basic javascript client back to the level it was before the messaging overhaul.
Tagged messages with debug.