Added DI code for reference; moving away from AngularJS