Update momenu.js

Cleaned up a function.