Get cell size from JS