Reduce changes to minimum necessary inside date.js, with other changes maintained in private application code