i got it working but the port of my duktape code isn't done yet.
file loading is implemented with an asset generator script that reads all the files in the data folder and converts them into c arrays and puts them inside a c source file.
also restructure the code so the js file has an update and start function that gets called.