utility.js added + grid.js refactored