Fix sample js and update c3.js