Update tablechecking.js

check for syntax error