Further JS refactoring - completedView