JS grid maker