This version lower the usage of scriptlet in chat.jsp by separating
those javascript to individual js files.
Clean up of chat.jsp
1. rewrite some code using jQuery
2. clean up most of js code in chat.jsp into activity.js and channel.js
2. fix activity.js