JavaScript Cache-storage Resources