<% window.setup = {}; window.setup.health = 80; %> Show a healthbar using a Progress element: <%= '<progress value="' + window.setup.health + '" max="100"></progress>' %> Show a healthbar using a Meter element: <%= '<meter value="' + window.setup.health + '" min="0" max="100"></meter>' %>