 
   _showHighlight: (pageNumber, start, end) =>
 
-  _openHighlight: (pageNumber, highlightStartIndex, highlightEndIndex) =>
+  _openHighlight: (pageNumber, start, end) =>
 
   _closeHighlight: (pageNumber) =>
 

      page.textSegmentsDone = true

      @_enableHighligts pageNumber

      @_showSegments pageNumber

    appendText: (geom) =>
      page.textSegments.push PDFJS.pdfTextSegment page.textContent, page.textSegments.length, geom

    # Highlights already enabled for this page
    return if page.highlightsEnabled
    page.highlightsEnabled = true

    # For debugging
    #@_showSegments pageNumber

    $canvas = $("#display-page-#{ pageNumber } canvas")

