def line_to_js_command_reference(from_point, to_point, curve_name):
    """
    Returning a js script based on reference modelling.
    :param from_point:
    :param to_point:
    :param curve_name:
    :return:
    """
    return curve_name + ' = CreateLineTwoPoints(' + 'point' + str(from_point
        ) + ',' + ' point' + str(to_point) + ');\n'
