Use the raw url to retrieve the script source rather than json api method.
Create buffer from script source string in the right place.
Limit the number of scripts to be imported simultaneously to 5.