   ]
 
   ###
-  parseLyrics: (lyrics) ->
+  parseLyrics = (lyrics) ->
     lyricsLines = lyrics.split("\n")
 
     dataModel = []

if jQuery?
  jQuery.fn.extend
    openSongLyrics: (lyrics) ->
      openSong.renderLyrics this, lyrics


Handlebars.registerHelper 'human_header', (abbr) ->

      abbr


class OpenSong

  constructor: (element, lyrics) ->
    @el = getDomElem element
    @model = parseLyrics lyrics

    #render initially
    this.renderLyrics()


  renderLyrics: ->
    # TODO: support comments
    templateSrc = """
      {{#this}}
