Move major graphing for line.html file into line.js file.