Adds function pushData that updates bar chart.
Adds http to jquery url.