scheduler.js with dynamic routes