corrections to hexgrid_impl.js