Update menuFactory.js