fix grid js