cleans up timer management in custom.js