update stats.resource.js so all methods accept date range filter