Add comparison
Split out some drawing stuff into basicplot.js.coffee