rename client js file, and reorganize the application