moves generation of grid DOM elements to the first downloaded js file to speed up UI setup.