A script and resource loader for caching & loading scripts with localStorage