use previous method but put highcharts.js into app/assets/javascript