JavaScript in the Browser: DOM Manipulation and Events - Implementing Our 'Hold' Function and the DRY Principle