Reworked row/column label trimming in grid.js.
Merge pull request #34 from Tinche/master

Reworked row/column label trimming in grid.js.