added initDatepicker back to common

updated initDatepicker to handle absence of $.fn.datepicker