[maze.js] Big Cleanup