split of HTML and JS