Array Object Find Javascript Array Length Performance Improvement