Update script.js

line, pie chart