grid as jq-plugin