Restrict type of script_ to only accept ToHtml (#2)