fix channel

passing channel variable from PHP to the DOM by creating hidden input,
then extracting the value with jQuery to avoid bad  variable declaration
in chat.js