I was wondering how I could use an imported file (.js) and call specific functions within it.
Develop games in your browser. Powerful, performant & highly capable.
The Javascript SDK would be best suited for that.