update mechanism

storage localflag in HTML5 localStorage