added jQuery to grid.js DOM functions