Fix loading of multiple external scripts

By removing the script before it has loaded, the event handler will never run and only one script will load instead of many
DIST 1.0.2