David Klein is the creator of Jelly Belly jelly beans. (Tricky Treasures)It’s like “Charlie and the Chocolate Factory,” but hopefully safer for bratty children.The man who created Jelly Belly jelly beans is offering to give away thousands of dollars and one of his candy factories through a series of “treasure hunts.”The catch is that, unlike Willy Wonka’s contest, it costs more than the price of a chocolate bar to join David Klein’s competition.Klein announced this week that he and his partner have been hiding “gold-style tickets in the form of necklaces” in places throughout the United States so he can hold treasure hunts in each state.