Split HTML to CSS and JS