Update mazegen.js

See issue #159