JS cannot be previewed in the designer (not even in an iframe).
You’ll have to publish your site and view the live site.
If you want to include externally-hosted libraries, see these:
How to host text files on Github
How to embed files hosted on Github