Eliminated the use of jQuery each().