Separate script content from markup