added grid.js, first attempt