Changed slow jQuery .each() to faster for loop :guitar:.

See: https://drupal.org/node/1720586/?/index.jsp