Hide JavaScript source in another JavaScript file?

So far I have an HTML file with something like:

<script src="http://example.com/script"></script>

But I want to hide this “http://example.com/script” from my main HTML file. So is it possible to do something like:

<script src="script1.js"></script>

And set script1.js to execute the script the same way
<script src="http://example.com/script"></script>
does?

In script1.js tell that
src="http://example.com/script"
something like that?