write a function and Usage of EventTarget in advancedTimers.js