Treasure generation in test mode works.

Next step is to ensure communication with the HTML/JS is correct, and then to
implement display of the resulting items.