Add javascript to menu