add chat.js
add jquery.cookie
change cookies to sessions