GM Wixers: Not able to reference a variable

Try to console.log a typeof of both $w(’ #iInput1 ').value and itempw to see if they are really equal and of the same type.