 trailingSlash = /\/$/
 
 # Patched Backbone.History with a basic query strings support
-module.exports = class History extends Backbone.History
+class History extends Backbone.History
 
   # Get the cross-browser normalized URL fragment, either from the URL,
   # the hash, or the override.

      @history.replaceState {}, document.title, @root + @fragment

    @loadUrl() if not @options.silent

    @options          = _.extend {}, {root: '/'}, @options, options
    @root             = @options.root
    @_wantsHashChange = @options.hashChange isnt false
    @_wantsPushState  = Boolean @options.pushState
    @_hasPushState    = Boolean (@options.pushState and @history and @history.pushState)
    fragment          = @getFragment()

    # Normalize root to always include a leading and trailing slash.
    @root = ('/' + @root + '/').replace rootStripper, '/'

    # Depending on whether we're using pushState or hashes, and whether
    # 'onhashchange' is supported, determine how we check the URL state.
    if (@_hasPushState)
      Backbone.$(window).on 'popstate', @checkUrl
    else if @_wantsHashChange and 'onhashchange' of window
      Backbone.$(window).on 'hashchange', @checkUrl
    else if @_wantsHashChange
      @_checkUrlInterval = setInterval @checkUrl, @interval
