Refactor CSS and JS header