grid now fully working in standalone javascript context