Added ~20 new Jasmine tests
Moved functions from histogram-view.txt to histdata.js
Refactored some code in histdata.js
Modified functions to include error-checking
Graph title on top of histograms page now changes depending on which
graph is currently being viewed