Writing answers to local storage and showing results (json critical fixed)