getScript that works with url arrays