autosaving to localStorage every 5 mins