It would be nice to have a callback when the script is loaded like google maps. So we can defer the loading of the scripts the speed up the page speed.
https://maps.googleapis.com/maps/api/js?callback=googleMapsLoaded
I just see a problem with those lines #16...