first pass at improving scope attribute example

refer to https://www.w3.org/Bugs/Public/show_bug.cgi?id=20916