Suppose you wrote a compiler that translates to JavaScript in continuation-passing style. (Or suppose you wrote all your JavaScript in continuation-passing style.)
That's the implementation of call/cc.
For how to use call/cc, I recommend my other article on continuations:
http://matt.might.net/articles/programming-with-continuation...