Javascript intra-tab method/data proxy using localStorage