Fixed menu.js using the correct event interface