Force re-flow before calculating preview size
Cache $window and $document
Abstract getting the th of a particular row or column
Add some comments
Add tooltips for boards which won't fit in the screen