Javascript intra-tab and window method and data proxy using localStorage