Ensure script tags load in order

For each script tag, wait for the external source to be loaded
before moving on to the next script tag.