Move inline script to menu.js