A generic window method to inject JavaScript Libraries asynchronously