Terrarium for chapter 8 of Eloquent JavaScript