Fixing layout for javascript grid so that it works correctly now