Moving Threshold to decimal date, modifying js to deal with new decimal dates'