Deletes some useless js files
Fixed the chat application so that user clicked on is loaded
Auto load the chat script for currently selected tab
Fixed the null error in the chat