Split HTML and JS