Execute javascript function utilizing .js file added under externalfiles

I'm doing a PoC for generating the URL (using string and loadrunner parameters) and encrypting using AES 256 bit.

ex:applicationURL/invoke&rbc={encrypted_content}

I'm able to get it done using web protocol and web_js_run with below 2 files as source.
crypto-js.js - Library file
AES.js - Contains the javascript functions for converting the message,key and iv into ByteArray. CryptoJS.AES.encrypt function

I need to achieve similar for Truclient web and struggling to get it done using evaluate JavaScript code.

how do i make these 2 files as source/reference before executing the CryptoJS.AES.encrypt function

function encryptString(MsgToEncrypt,inputkey,inputiv)
    {
    
    var plainTextinBytes = CryptoJS.enc.Utf8.parse(MsgToEncrypt);
    var keyinByteArray = CryptoJS.enc.Base64.parse(inputkey);
    var iv = CryptoJS.enc.Utf8.parse(inputiv);
    
    var encryptedText = CryptoJS.AES.encrypt(plainTextinBytes,keyinByteArray,{iv:iv, mode:CryptoJS.mode.CBC});
    
    var ivBase64 = iv.toString(CryptoJS.enc.Base64);
    
    return ivBase64 + ":" + encryptedText;
}