From here and a bit down it feels like a lot of duplication from hints.coffee. Perhaps it could be done DRYer?