A template for modular javascript in Drupal