replaced dojo array utils with native array methods