Explicitly set and use an id on the "wrapper" template, instead of relying on it being the first one returned by querySelector('template')