Just trying to use setAttribute() with an easy example. Code works well when using plain text, but whenever I try to use a variable stops working:
function getIma