code: function insertEmoji(str) {
  
                      var emojiRegex = new RegExp(":(" + emojiList.join("|") + "):", "g");
  
                      return str.replace(emojiRegex, function (match, text) {
                          return "<i class='emoticon emoticon-" + text + "' title=':" + text + ":'></i>";
  
                      });
                  }
docs: FUNCTION insertEmoji
  
  @description
  Converts text into emojis
  
  @param  {string} str
  
  @return {string}