Handle mousedown events on touch screens

This commit also moves the grid to a separate partial html file