add DynamicVector decoding to js