Scoping tag functionality improved

Please refer to /test/usage.js for examples