rewrite menu.js