Move wrap() helper function from util.lua to html.lua