ajax-y magic

Theoretically this should allow the chat to be more chat-like and not require a page refresh.
Do we need the redundancy of this *and* line 55? Why not update the rest of the $user_id call to pull from $_SESSION?