Follow below steps to resolve this issue:
- Go to Settings –> Advanced settings
- Go to Administration.
- Open System Settings.
- Remove the js option and click OK.
After doing this you will be able to add js files.
Hope you find this helpful! 🙂