Added res/script/grid.js