Starting Ajax call for charts; datepickers fixed

Ajax call data moved to new file. Both datepicker functions also now
work