add graph html and js code as resources, which can be loaded