Wired the HTML to use collections