js bugfix, protocol widget fix