[JS] Codec

Add packet codec to the tests