Updated to allow arrays in JavaScript source and dest