Update grid.base.js

Implementation dynamic autodetection of input JSON format corresponds with [the suggestion](http://www.trirand.com/blog/?page_id=393/feature-request/autodetection-of-input-json-format/).