DBC Portfolio Challenge: Refactoring JavaScript