def split_graph_output(output):
    """
    Split out of a Plotly graph in to html and javascript.
    :param output: a string of html and javascript comprising the graph.
    :returns: a tuple of the graph's html and javascript.
    """
    html, js = output.split("<script")
    js = "<script" + js
    return html, js

    Split out of a Plotly graph in to html and javascript.
    :param output: a string of html and javascript comprising the graph.
    :returns: a tuple of the graph's html and javascript.
    
reports/utils.py