Update table.js

fixing bug: tbl = [];