Working on JS for cron generation