Update main.js

Otherwise the head of the table disappears
Merge pull request #2 from EA5/patch-1

Update main.js