Loses datetimepicker methods/amends js