Loading a local JS library using --static-dirs instead of downloaded it from a CDN

@Marc helped me solve a js issue by using pn.extension

pn.extension(js_files={"plotly": "https://cdn.plot.ly/plotly-2.31.1.min.js"})

Maybe this might help?