revised index.html, tablechecking.js