Messaging between windows using localStorage API