Updating line.js and scatter.js with minor modifications