I'm not really sure I understand what all is going on here either.  The documentation describes how to set this up and get this working.  

https://neil.fraser.name/software/JS-Interpreter/docs.html