removed debugging code from graph javascript