Made localStorage injectable