Script to simply verify day and hour to redirect on JS