datepicker update

datepicker updated to provide years from 1900 to current. datepicker
function moved to separate file. JS used in views.