fix extending datepicker before onReady event