Fix IE8 race condition where different windows are writing reading to localStorage, fix #55