diff --git a/motdparserweb.js b/motdparserweb.js
new file mode 100644
index 0000000..87cdb2a
--- /dev/null
+++ b/motdparserweb.js
@@ -0,0 +1,131 @@
+//// https://github.com/nailujx86/mcmotdparser
+
+var motdParser = {};
+
+motdParser.classes = {
+ "bold": "mc_bold",
+ "italic": "mc_italic",
+ "underlined": "mc_underlined",
+ "strikethrough": "mc_strikethrough",
+ "obfuscated": "mc_obfuscated"
+};
+motdParser.colors = {
+ '§0': 'black',
+ '§1': 'dark-blue',
+ '§2': 'dark-green',
+ '§3': 'dark-acqua',
+ '§4': 'dark-red',
+ '§5': 'dark-purple',
+ '§6': 'gold',
+ '§7': 'gray',
+ '§8': 'dark-gray',
+ '§9': 'blue',
+ '§a': 'green',
+ '§b': 'aqua',
+ '§c': 'red',
+ '§d': 'light-purple',
+ '§e': 'yellow',
+ '§f': 'white',
+};
+motdParser.extras = {
+ '§k': 'obfuscated',
+ '§l': 'bold',
+ '§m': 'strikethrough',
+ '§n': 'underline',
+ '§o': 'italic'
+};
+motdParser.parseJsonToHTML = function (jsonPart) {
+ var classlist = "";
+ var text = "";
+ for (var key of Object.keys(jsonPart)) {
+ if (key == "text") {
+ text += jsonPart.text;
+ continue;
+ }
+ if (motdParser.classes.hasOwnProperty(key)) {
+ classlist += " " + motdParser.classes[key];
+ continue;
+ }
+ if (key == "color") {
+ classlist += " mc_" + jsonPart[key];
+ continue;
+ }
+ if (key == "extra") {
+ for (var jsonPartExtra of jsonPart.extra) {
+ text += motdParser.parseJsonToHTML(jsonPartExtra);
+ }
+ }
+ }
+ var retText = "" + text + "";
+ return retText;
+};
+motdParser.jsonToHtml = function (json, callback) {
+ json = JSON.parse(JSON.stringify(json).split('\\n').join("
"));
+ var motd = motdParser.parseJsonToHTML(json);
+ motd = "