sample scripts to understand AngularJS directives and scopes usages