made view more form based
separated out chat javascript as static file
separated sending/receiving msgs in views