Copy defaulturls array properly

script will now execute for every item a user adds to defaulturls instead of just the first.