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