$ ->
  $(".js-emoji").each ->
    $(@).html(emojione.toImage($(@).text()))

window.emojify = ->
  $(".js-emoji").each ->
    $(@).html(emojione.toImage($(@).text()))

$ -> emojify()

Make an emojify global function
Make an emojify global function