adding soe improvemenets on js grid functions