updated version of tabletop.js