Simple FortuneTeller in javascript