make basis.date es5 compliant