Convert JS arrays to ruby arrays: errors support