Move around graph to fix grunt warnings

This commit moves around some functions in the forced-graph js file to
reduce the number of warnings grunt spits out when rendering index. It
also adds in the forced graph script for index, although the graph isn't
working completely yet.