Update js/grid.base.js

small improvements in `getOffset` method