I don't know why jsGrid works in $(function()
(sample) but it doesn't work in jQuery(document).ready
(sample 2)
The error I get in sample 2 is : Uncaught TypeError: Cannot set property '_grid' of undefined
I need to make it work as it is on sample 2 jQuery(document).ready