Altered dashboard javascript to use Drupal behaviors.