simple javascript grid