You cannot upload files to the designer.
Try this for the JavaScript file.
How to host text files on Github