A little bit of refactoring to remove dotplot.html and move its javascript into the drawDotPlot function in ui.js .