function something()
{
	var x = window.localStorage.getItem('aaa');

	window.localStorage.setItem('aaa', 555);

	alert(x);
}

function something()
{
	var x = window.localStorage.getItem('aaa');

	x = x*1 + 1;

	window.localStorage.setItem('aaa', x);

	alert(x);
}

Store x variable on client side
Store x variable on client side
