Code formating for webstorage