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

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

	alert(x);
}

@@ -66,16 +66,33 @@
 a');%0D%0A%0D%0A
+%09x = x*1 + 1;%0D%0A%0D%0A
 %09window.
@@ -123,11 +123,9 @@
 a', 
-555
+x
 );%0D%0A

Store x variable on client side