Drawing functions in searchgrid.js! Working! Every function using "closure"