Update main.js

Otherwise the head of the table disappears