correctly adding scripts