Add localStorage support for decrease network traffic

working with not break Same-Origin policy