Hypnotic is a library/mechanism that implements synchronized sleep() in JavaScript.
Don't miss the fun demo!
For technical details, please go to wiki
Lu Wang @coolwanglu
The whole package is licensed under the MIT License, but individual files (including hypnotic.js) may be licensed under MPL, LGPL or GPL, read license blocks in the files.