I noticed that there is a Web Serial API which can be used to have browsers use serial ports that are on a system. It also seems to support all the signals you need for modem control and otherwise. Would be interesting to make a web application that uses it.