added the chat.js for various chat template js ajaxy needs