Transferring JsArray -> dynamic array