A maze generator in JavaScript