root to chat/index, remove unused files