Add datepicker logic to index.htm.  Cleaned up js code