SetDetails undefined

on pg 116-117. I have added the function to main.js but when I call the function from the console. it returns undefined and the pic does not change as I expected.

Any advice on how to resolve this ?

Nevermind. i did not e the data-role correctly in the HTML elements.