Ddshboard reports are now functional.
Refactored chart generation js into separate script to allow for
code reuse between dashboard and reports.