move client.js to the bottom of the page
use a template for versiong
back to global scope..
use a separate variable
set roomid
add # to select by id
set log and msgwrap on roomchange
set log and msgwrap based on target room
define var and msgwrap outside of the if/else
move roomid inside $(function() {