Joomla allows adding js to specific pages. You can add js to Joomla template using the following guide.
How to Add js to Joomla Template
There are two ways to add js to Joomla templates. Depending on the position where you want to add it follow the steps given below:
Add js File in Component Position
Add js File in Module Position
The reason why the editor needs to be switched off is that the editor will evaluate the code and rectify it. So there are chances of losing data present initially in that position. You can limit where the module is displayed under the menu assignment selection.
In case you face any difficulty in doing so, then request a quote. Our expert team of professionals will assist you in adding js to Joomla template. Avail our Joomla template customization services.