replace localstorage with jstorage. closes #50