Create with_scope

page 349 from Professional Javascript for Web Developers