diff --git a/modules/discojuice/www/discojuice/discojuice.hosted.js b/modules/discojuice/www/discojuice/discojuice.hosted.js
new file mode 100644
index 0000000000000000000000000000000000000000..f426cd26568fdc414d7ee06172f279a9d58f4263
--- /dev/null
+++ b/modules/discojuice/www/discojuice/discojuice.hosted.js
@@ -0,0 +1,46 @@
+/*
+ * DiscoJuice
+ * Author: Andreas Ă…kre Solberg, UNINETT, andreas.solberg@uninett.no
+ * Licence undecided.
+ */
+if (typeof DiscoJuice == "undefined") var DiscoJuice = {};
+
+DiscoJuice.Hosted = {
+	
+	"setup": function (target, title, spentityid, responseurl, feeds, redirectURL) {
+		var options, i;
+		
+		options = {
+			"title": "Sign in to <strong>" + title + "</strong>",
+			"subtitle": "Select your Provider",
+			"disco": {
+				"spentityid": spentityid,
+				"url": responseurl,
+				"stores": ["https://store.discojuice.org/"],
+				"writableStore": "https://store.discojuice.org/"
+			},
+			"cookie": true,
+			"country": true,
+			"location": true,
+			"countryAPI": "https://store.discojuice.org/country",
+			"discoPath": "https://static.discojuice.org/",
+			"callback": function (e, djc) {
+                var returnto = window.location.href;
+				window.location = redirectURL + escape(e.entityID);
+			},
+			"metadata": []
+		};
+		
+		for(i = 0; i < feeds.length; i++) {
+			options.metadata.push("https://static.discojuice.org/feeds/" + feeds[i]);
+		}
+		
+		$(document).ready(function() {
+			$(target).DiscoJuice(options);
+			console.log("SETUP completed");
+			console.log(options);
+		});
+		
+	}
+	
+};
\ No newline at end of file