JS homepage cleanup (draw graphs combined)

	The previously massive list of graph draw functions are now
	combined into one, making the JS a lot more compact smaller.
	Issue #28