var Translator = {
		init : function(dictionaryURL, $elm) {
            $.getJSON(dictionaryURL, function(dictionary) {
            if (!dictionary) return;
            $.each($elm, function(i,n) {
                $this = $(this);
                for (var term in dictionary) {
                    var newhtml = $this.html().replace(new RegExp(term, "gi"), dictionary[term])
                    $this.html(newhtml)
                }
            })
        })
	}
};


