improved recognition of script URLs