fix truthtables.js include, add math docs