moved localStorage to extension background