By example: Continuation-passing style in JavaScript · HackerTrans