Update javascript & test web page to new protocol