I don't understand why attr() isn't working (see code below). I can see correct tag with the attribute in sources, tag is creating but it's not visible on the website.
app.html('<h1>' + product.name + '</h1><img src="' + product.img + '" width="300"></img><a></a>');
$('a').attr("href", product.link);