diff --git a/openid_selector.install b/openid_selector.install
index 6d2ca8a..9b7c1dd 100644
--- a/openid_selector.install
+++ b/openid_selector.install
@@ -10,6 +10,7 @@ define('JAVASCRIPT_OPENID_SELECTOR_VERSION', '1.3');
 define('JAVASCRIPT_OPENID_SELECTOR_DOWNLOAD', 'http://openid-selector.googlecode.com/files/openid-selector-1.3.zip');
 
 function openid_selector_get_javascript_version() {
+  drupal_load('module', 'libraries');
   $library_path = libraries_get_path('openid-selector');  
   if (!file_exists($library_path . '/js/openid-jquery.js')) {
     return NULL;
