Getting Uncaught TypeError after implementing code from jsfiddle

If you want to keep extra information (as an ID) within a cell I propose to use cell metadata. Here is an example https://jsfiddle.net/handsoncode/tb7rw0xk/