Unfortunately I don’t realy know much about js
I recommend asking one of the LLMs like ChatGPT and seeing if it can help guide you.
Alternatively, I think perhaps How to use JSComponent with FullCalendar - #4 by philippjfr could be helpful. Seems like you might need importmap?