build a menu bar to switch protocp;s in javascript