refactor css and js sperate them