Update graph_rdf.pl

Added JavaScript to switch graph type