Library for using blocking syntax with event-driven Javascript code