Tweaks to getScriptUrls() implementation