Sherlock, 12 Puzzles, and Elementary JavaScript