Labyrinth generator for JS.