fix js for date pick in lead management