generate html and google chart, realllllly hackish