code: function(charCode) {
                  var isSpecialCharacterEmoji = charCode === 0x3030 || charCode === 0x00AE || charCode === 0x00A9,
                      inEmoticonBlock = 0x1F600 <= charCode && charCode <= 0x1F64F,
                      miscSymbolsAndPictogram = 0x1F300 <= charCode && charCode <= 0x1F5FF,
                      transportAndMap = 0x1F680 <= charCode && charCode <= 0x1F6FF,
                      miscSymbol = 0x2600 <= charCode && charCode <= 0x26FF,
                      dingbat = 0x2700 <= charCode && charCode <= 0x27BF,
                      variation = 0xFE00 <= charCode && charCode <= 0xFE0F,
                      arrow = 0x20D0 <= charCode && charCode <= 0x20FF;
  
                  return isSpecialCharacterEmoji || miscSymbolsAndPictogram || transportAndMap || inEmoticonBlock || miscSymbol || dingbat || variation || arrow;
              }
docs: http://stackoverflow.com/questions/30757193/find-out-if-character-in-string-is-emoji