Moved var = cron to top of server.js