Update js/grid.base.js

fixing the bug described [here](http://www.trirand.com/blog/?page_id=393/bugs/bug-in-local-searching/#p28113).