Tweaks to shorten Serialport html names.
and remove redundant code.