write custom events in advancedTimers.js