Fix some JS syntax errors. Style the table. Correct the buttons