Added codes to store settings to localStorage
Added code to load stored settings from localStorage