1. reranged the reference of js file and css file
2. fixed some bugs