using mozilla localStorage to store the key (generated if not found)