Creating session storage adapter (copy of dom).