Fooling around with Angular resources
Scoping in JavaScript