There are a couple existing modules that alter the menu stack for you in their own special way, but they add additional time onto your projects because not only do you have to style menus for your existing links, but you also have to style for non-links wrapped in span tags. Or the module just forces the parent to link to the first child.
The idea is simple, provide a new tag for users when creating menus that will simply wrap the title in a valid <a> tag.
The possibilities are limitless because you can specify what value you want to insert into the href tag in the module options. So you can use it to call that js function you want to invoke from the menu.
I hope you enjoy it, gimme some feedback and I will make improvements as I get time.