There is a JS "shell" application included. It shows how to:
1-Create an instance of TBESEN
2-Register functions, like "version()"
3-Create TBESENObject to represent "document", "window", or "navigator"
4-How to register functions to these objects, like "document.writeln()".
5-How to register properties to these objects, like "navigator.userAgent".
Simply read the code and see how it works, and if you questions come back and ask. But if you are starting with Pascal, it is more logical to build enough confidence and skill in it first.