extract template name in graphs into function.
refactor readability of function(-calls).
fix indentation/dot-syntax in graphs-code.
use d3 instead of jquery in graphs where feasible.
remove (now) obsolete add/removeClass functions.
remove unnecessary explicit return-call.
fix anchor-urls for graph-depth representation.
optimize js graphs-uri determination.
fix asynchronous graph-load code.