adding js libraries to render graph