Script should not be appended if there is no html or body tag