Update table.js

Multiple tables fix