Separated ChartData from Chart
Moved intervalContains to utils.coffee
Fixed Y logscale/origin option buttons

and got rid of the general name Y1, and simplified to just Y
Extracted Chart option updating code as a method