loadScript and cacheScript