I am trying to set an element as grid when the page loads through JavaScript, so the CSS sets the display as none, but also specifies the three columns. What is happening now is