Refactors Google Loader to work with Angular service, no longer crashes unit tests