Removed testing code from maze.js.
Added comment. Replaced trimRight() with trim() for IE9.