diff --git a/core/ext/load_ext_data.ext.php b/core/ext/load_ext_data.ext.php
new file mode 100644
index 00000000..3d3184d9
--- /dev/null
+++ b/core/ext/load_ext_data.ext.php
@@ -0,0 +1,20 @@
+get_string("data_href");
+
+ foreach(glob("ext/*/style.css") as $css_file) {
+ $page->add_header("");
+ }
+
+ foreach(glob("ext/*/script.js") as $js_file) {
+ $page->add_header("");
+ }
+ }
+ }
+}
+add_event_listener(new LoadExtData());
+?>
diff --git a/scripts/libshish.js b/ext/core_scripts/script.js
similarity index 54%
rename from scripts/libshish.js
rename to ext/core_scripts/script.js
index 80cdcc58..e74bfb02 100644
--- a/scripts/libshish.js
+++ b/ext/core_scripts/script.js
@@ -1,3 +1,69 @@
+var defaultTexts = new Array();
+
+window.onload = function(e) {
+ var sections=get_sections();
+ for(var i=0;i