Compiled JS (not up to date). Update board on resize and on scroll