Use callbacks/continuations to read # gestures

These fairly simple lines took far too long.  Slurpy uses eval to do callbacks,
but in most browsers, this means the callbacks only have access to global
functions.  Have to copy callbacks into global scope before calling slurpy.