Some of the javascript exists in our templates right now. If possible - especially the D3 stuff, that should be moved to separate javascript files.
Additionally, creating some APIs for the javascript to call to instead of passing json as template variables from Django is probably a good idea.