LocalStorage stubbing for servers