fixed calc for histogramsj.htm but d3 hist is still broken