js menu click commit