mainly the Javascript in CSS Menu Writer is used for the current item options.
In menu writer you can select to highlight the current menu item, if this is set, it uses JS to compare the Address bar to the links in the menu and if it matches, then highlight that menu item.
if you don't select to highlight the current menu item, then the JS is not needed.