Added gethint file, redesign of chart_test file

javascript and ajax functionality added to both files with sql calls in
gethint