JavaScript ByteArray an implementation of ActionScript ByteArray