typo mistake? changed localStorage to local-storage