diff --git a/core/includes/theme.inc b/core/includes/theme.inc
index c77ddd0..722b8dd 100644
--- a/core/includes/theme.inc
+++ b/core/includes/theme.inc
@@ -224,23 +224,23 @@ function _drupal_theme_initialize($theme, $base_theme = array(), $registry_callb
 
   // Grab scripts from base theme
   foreach ($base_theme as $base) {
-    if (!empty($base->scripts)) {
-      foreach ($base->scripts as $name => $script) {
-        $final_scripts[$name] = $script;
+    if (!empty($base->libraries)) {
+      foreach ($base->libraries as $library) {
+        $final_libraries[] = $library;
       }
     }
   }
 
   // Add scripts used by this theme.
-  if (!empty($theme->scripts)) {
-    foreach ($theme->scripts as $name => $script) {
-      $final_scripts[$name] = $script;
+  if (!empty($theme->libraries)) {
+    foreach ($theme->libraries as $library) {
+      $final_libraries[] = $library;
     }
   }
 
   // Add scripts used by this theme.
-  foreach ($final_scripts as $script) {
-    drupal_add_js($script, array('group' => JS_THEME, 'every_page' => TRUE));
+  foreach ($final_libraries as $library) {
+    drupal_add_library($library[0], $library[1], TRUE);
   }
 
   $theme_engine = NULL;
@@ -719,14 +719,14 @@ function list_themes($refresh = FALSE) {
       $themes = _system_rebuild_theme_data();
     }
 
-    foreach ($themes as $theme) {
+    foreach ($themes as $key => $theme) {
       foreach ($theme->info['stylesheets'] as $media => $stylesheets) {
         foreach ($stylesheets as $stylesheet => $path) {
           $theme->stylesheets[$media][$stylesheet] = $path;
         }
       }
-      foreach ($theme->info['scripts'] as $script => $path) {
-        $theme->scripts[$script] = $path;
+      foreach ($theme->info['libraries'] as $library) {
+        $theme->libraries[] = array($key, $library);
       }
       if (isset($theme->info['engine'])) {
         $theme->engine = $theme->info['engine'];
@@ -742,7 +742,6 @@ function list_themes($refresh = FALSE) {
       $list[$theme->name] = $theme;
     }
   }
-
   return $list;
 }
 
diff --git a/core/modules/system/system.module b/core/modules/system/system.module
index 03f9042..3d43740 100644
--- a/core/modules/system/system.module
+++ b/core/modules/system/system.module
@@ -2582,7 +2582,7 @@ function _system_rebuild_theme_data() {
     'screenshot' => 'screenshot.png',
     'php' => DRUPAL_MINIMUM_PHP,
     'stylesheets' => array(),
-    'scripts' => array(),
+    'libraries' => array(),
   );
 
   $sub_themes = array();
@@ -2620,7 +2620,6 @@ function _system_rebuild_theme_data() {
     // Prefix stylesheets and scripts with module path.
     $path = dirname($theme->uri);
     $theme->info['stylesheets'] = _system_info_add_path($theme->info['stylesheets'], $path);
-    $theme->info['scripts'] = _system_info_add_path($theme->info['scripts'], $path);
 
     // Give the screenshot proper path information.
     if (!empty($themes[$key]->info['screenshot'])) {
diff --git a/core/themes/seven/seven.info.yml b/core/themes/seven/seven.info.yml
index 6ff76ea..81c39a5 100644
--- a/core/themes/seven/seven.info.yml
+++ b/core/themes/seven/seven.info.yml
@@ -10,6 +10,8 @@ stylesheets:
 stylesheets-override:
   - vertical-tabs.css
   - jquery.ui.theme.css
+libraries:
+  - install-page
 settings:
   # @todo D8: Remove once themes have to be installed.
   shortcut_module_link: '1'
