[refactoring] move *.coffee
working on refactoring/fixing chat
working on refactoring js