Use ractive to apply updated template

Randomize and update template using Ractive