diff --git a/rate.module b/rate.module
index 5a1dc9c..fb514e5 100644
--- a/rate.module
+++ b/rate.module
@@ -268,7 +268,7 @@ function rate_generate_widget($widget_id, $content_type, $content_id, $mode = RA
   }
 
   // Add generic javascript.
-  drupal_add_js(drupal_get_path('module', 'rate') . '/rate.js');
+  drupal_add_js(drupal_get_path('module', 'rate') . '/rate.js', array('scope' => 'footer'));
   
   $links = array();
   foreach ($widget->options as $option) {
@@ -305,7 +305,7 @@ function rate_generate_widget($widget_id, $content_type, $content_id, $mode = RA
   }
 
   if (isset($widget->js)) {
-    drupal_add_js($widget->js);
+    drupal_add_js($widget->js, array('scope' => 'footer'));
   }
 
   if ($widget->mode == RATE_CLOSED && ($mode == RATE_COMPACT || $mode == RATE_DISABLED || $mode == RATE_COMPACT_DISABLED)) {
