extract prototype menu from markup