Indentation fix
Added a small localstorage support