bugfix
Move script tag after html source
Refactoring: Modify chatlog by ChatlogController