Wireprotocol Javascript implementation