renamed init to datepicker_init