diff --git a/form_save_state/form_save_state.module b/form_save_state/form_save_state.module
index d59ca04..1e180d3 100755
--- a/form_save_state.module
+++ b/form_save_state/form_save_state.module
@@ -6,8 +6,33 @@
 function form_save_state_init() {
   drupal_add_js(drupal_get_path('module', 'form_save_state') . '/jquery.jnotify.min.js');
   drupal_add_css(drupal_get_path('module', 'form_save_state') . '/jquery.jnotify.min.css');
-  drupal_add_js(drupal_get_path('module', 'form_save_state') . '/jstorage.js');
-  drupal_add_js(drupal_get_path('module', 'form_save_state') . '/sisyphus.js');
+}
+
+
+/**
+ * Implements hook_library().
+ */
+function form_save_state_library() {
+  
+  $libraries['sisyphus'] = array(
+    'title' => 'Sisyphus',
+    'website' => 'http://sisyphus-js.herokuapp.com/',
+    'version' => '1.1',
+    'js' => array(
+      libraries_get_path('sisyphus') . '/sisyphus.min.js' => array(),
+    ),
+  );
+  
+  $libraries['jStorage'] = array(
+    'title' => 'jStorage',
+    'website' => 'https://github.com/compujohnny/jStorage/',
+    'version' => '0.1.4',
+    'js' => array(
+      libraries_get_path('jStorage') . '/jstorage.min.js' => array(),
+    ),
+  );
+    
+  return $libraries;
 }
 
 /**
