Import pure (non-module) JS file with functions

How to import pure JS file with functions which does not exists as module and is located in project resources folder into Kotlin and make it possible to write external declarations to it?

I need to do the same as following line does in index.html
<script type="text/javascript" src="mil-sym/sm-bc.js"></script>

File contains functions like this:
var armyc2 = armyc2 || {};
armyc2.c2sd = armyc2.c2sd || {};
armyc2.c2sd.graphics2d = armyc2.c2sd.graphics2d || {};
armyc2.c2sd.graphics2d.Point2D = function() {
this.x = 0;
this.y = 0;
if (arguments.length === 2)
{
this.x = Number(arguments[0]);
this.y = Number(arguments[1]);
}
if (arguments.length === 1)
{
this.x = Number(arguments[0].x);
this.y = Number(arguments[0].y);
}
};
armyc2.c2sd.graphics2d.Point2D.prototype.distance = function(x1, y1)
{
var dist = Math.sqrt((this.x - x1) * (this.x - x1) + (this.y - y1) * (this.y - y1));
return dist;
};