If you have a JavaScript (*.js) file containing code, it's not unusual for your code to reference code held in another JavaScript file. If you're using more recent versions of Visual Studio, you'll ...
JS probably isn't the way to go. Probably a better way would be to write an app with an embedded IE window.