simplified TableRec.js