refactored retrospective js