added output
changed the output format so that is easier to jsonize
added function to draw the chart
added js and container for chart