Understanding the [@bs.scope] decorator