Refactor the jQuery datepicker snippet so that the entire site can use it.

DRY!