adding jquery-ui and making the chart update based on some page content