Fixes to make datepicker IE8 compatible

Basically this boils down to not using custom elements.