changed some variable names to bring them in line with Drupal code standards for javascript.