dynamically update chart/table title & range header

clean up miscfunc.js
also - turn off reset/toggle when you click on brand class