Update grid.js

Added comment for code placement within the file