check for undefined:

Uncaught TypeError: Cannot read property '0' of undefined script.js:265
M.assignColumn script.js:265
M.createCode script.js:133
M.init script.js:84
window.onload