mem leak fix in gridster.js