Added graphing in the report

Javascript improvements (filtered repeat keys, tidied up code).
Improved report output (graphing, better layout).