refactoring site.js: create independent .js file for histogram, timeSeries, hexbinAggregate functions