minor js style
factoring out room drawing