Adding reference to where I figured out this type of angular/requirejs usage
Comments. Minor code adjustments.