Add tables.js and move js around