Is there a way to plot Multiple Lines with Plotly.JS?

I am trying to use PLOTLY.JS to plot 2 line graphs. But nothing is showing up on the screen except an empty graph. Any help? It works fine with one lines, bar charts, etc.

var plot_data = {}
var trace1 = {
    x: [4, 3, 1],
    y: [1, 3, 6],mode: 'lines',
    type: 'scatter'

var trace2 = {
    x: [6, 8, 9],
    y: [1, 2, 4],mode: 'lines',
    type: 'scatter'

var data = [trace1, trace2];
var layout = 
  title: { text: 'Task Plot', font: { family: 'Courier New, monospace', size: 24 }, xref: 'paper', x: 0.05,}

//var config = {responsive : true};
Tester = document.getElementById('myDash');

Plotly.newPlot(Tester, plot_data, layout);
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
            <script src=""></script>
            <script type="text/javascript"></script> 
        <meta name="description" content="">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="stylesheet" href="{{ url_for('static',filename='css/style.css') }}" />
<div id='myDiv'><!-- Plotly chart will be drawn inside this DIV --></div> 
        <script src="{{ url_for('static', filename='script/script3.js') }}" type="text/javascript"></script>

Nevermind I was able to solve this. Thanks