Check for 'undefined' and undefined when working with localStorage items. Removed redundant files/folders