Why does NL use Javascript for the menu?

Is the Javascript called to put the checkboxes and everything in the menu? Why is this done?

imgui