Fix bug in running HTML with multiple script tags