I'm trying to link a basic javascript file from one web server to another the same way that cloud-based jquery files work. However, when I link it like their files as seen below the alert stored in the external file doesn't trigger. I know this isn't the best practice to do this, however, for the small task it is required. Any suggestions would be great.
Link
<script src="http://example.com/javascriptfile.js"></script>
JS File
(function() {
alert("Matt it worked bud");
})