mainjs file for daily report