Update route-scan.js

Return the queued task to allow method chaining