HTML need only <canvas id="mycanvas" width="xxx" height="xxx"></canvas>, and rest can go in external JS.
Sorry, I am still not getting it. I am adding one example picture with the elements that are created when we export HTML 5 Canvas from Animate CC. What is "the rest" , that needs to go into separated JS file? What id should the canvas have? Can you please explain with a few more sentences. Thank you!