     if window.location.pathname.match /^\/legislator\/?$/
         cw.readLegislatorHistory()
 
-    else if window.location.pathname.match /^term\/[.+]\/?/
+    else if window.location.pathname.match /^\/term\/.+\/?$/
         cw.readTermDetailPageHistory()
         cw.populateTermDetailPage termDetailTerm
 


    readLegislatorHistory: ->
        hash = History.getState().hash.split('?')[1]
        data = {}
        if hash
            pieces = hash.split '&'
            chamber = party = congress = state = undefined

        e.preventDefault()
        $('.toggleSearchCompare').slideToggle 'fast', 'swing'

    $('#compareTermBtn').live 'click', (e) ->
        e.preventDefault()
        word = $(this).find('em').text()
        $('#terma').val word
