Return a function so we can require dashing-js in jobs without executing all server configuration