refine the structure of js&css