Split script from HTML