updated main.js

added localStorageService for todos