Update treasure-generator.js