modified Gris.js