add date_logic.js to change