improve reability of Javascript, remove odd check
Merge pull request #2 from CharlesGust/grid

improve reability of Javascript, remove odd check