External Javascript files can be added to your website. There are two ways to add them:
The first method:
Right-click on the page that you want to add it. Select "Page Properties" from the context menu. Click on the tab "Javascript"
Select the option "Add JQuery Javascript Library".
Click on the "Add" button and select your Javascript files from the website.
Enter your code in the textbox below which will be executed when the ready event of the document is fired. The code will look something like this "$("#id").javascriptcommand();".
The second method:
Right-click on the page that you want to add it. Select "Page HTML" from the context menu. Click on the tab "Inside Body (Bottom)".
Enter your HTML and Javascript code in the text box.
Using the first method, your Javascript files will be loaded together with the internal Javascript files if there are any. If asynchronous loading is selected, your files will also be loaded asynchronously. For the second method, you need to use the HTML code also in addition to the Javascript code like using the "<link>" tag for loading the Javascript file and "<script>" tag for the code.