better example

uses hidden template in the HTML