adding local storage

have a problem here as chrome (and maybe others) does not support local
storage access from a data URI