AngularJS tool for sharing variables across different scopes