You can make new tags/components using JavaScript blocks. Simply include a script iterating through all the script blocks in your page:
etc...
As soon as the browser renders the scriptblock, the function is called and the browser replaces the script block with whatever component you've written.