diff --git beautytips.module beautytips.module
index 8bfa2e6..0565365 100644
--- beautytips.module
+++ beautytips.module
@@ -41,6 +41,32 @@
 }
 
 /**
+ * Implements hook_library
+ */
+function beautytips_library() {
+  $path = drupal_get_path('module', 'beautytips');
+
+  $javascript =  array(
+    $path . '/js/jquery.bt.min.js' => array(),
+    $path . '/js/beautytips.js' => array(),
+  );
+
+  //for IE add this
+  $expath = $path . '/other_libs/excanvas_r3';
+  if (count(file_scan_directory($expath, '/excanvas.compiled.js/', $options = array('recurse' => FALSE)))) {
+    array_push($javascript, $expath . '/excanvas.compiled.js' => array());
+  }
+  
+  $libraries['fullcalendar'] = array(
+    'title' => 'BeautyTips',
+    'website' => 'http://plugins.jquery.com/project/bt',
+    'version' => '0.9',
+    'js' => $javascript,
+  );
+  return $libraries;
+}
+
+/**
  * This is the API.  Call this function to add beautytips.
  *
  * @param array $options - See README.txt for details
@@ -83,16 +109,6 @@
   
   // Add beautytips jQuery plugin
   if (!$added) {
-    $path = drupal_get_path('module', 'beautytips');
-    
-    //for IE add this
-    $expath = $path . '/other_libs/excanvas_r3';
-    if (count(file_scan_directory($expath, '/excanvas.compiled.js/', $options = array('recurse' => FALSE)))) {
-      drupal_add_js($expath . '/excanvas.compiled.js');
-    }
-    drupal_add_js($path . '/js/jquery.bt.min.js');
-    drupal_add_js($path . '/js/beautytips.js');
-
     drupal_add_js($settings, 'setting');
     $added = TRUE;
   }
@@ -216,4 +232,3 @@
   );
   return $styles;
 }
-
