Not sure why this method is sitting outside of the actual controller? Seems a bit strange to just have a floating function when this functionality could easily be put in the controller - and it doesn't even need to be a function, the assetService.loadJs can just be made when the controller initializes like the rest of the code.
I've changed this already so no need to do anything.