pass in resetDom as callback to cron