I have a dynamically created table with one cell containing a button. I used setAttribute to insert the onclick event but the variable that it is using is passed as a strin