Added a new example for the web, and better support on the delegate on closures