fixup bug with throwing errors for js
implement tParamRef for passing changable arrays