Commit changes from the scope to localStorage and not the other way around