JS-change related to list and grid switching