cleaning up menuPages.js