fix localstorage dependencies
JWS support.