tablescript.js. Will fix later.