       ractive.set 'loading', false # hides progress bar, shows menu
 
   @go: ->
-    @loadFile().then(@parseHtml).then(@buildArray)
+    @loadFile('stats/').then(@parseHtml).then(@buildArray)
 
 Loxgraph.Stat.go()
 

window.Loxgraph = {}

class Loxgraph.Graph
  constructor: (options) ->

    $("##{@div}").width($(window).width() - $("##{@div}").css('margin').replace(/[^-\d\.]/g, '')*4)

class Loxgraph.Stat
  @loadFile: (url) ->
    $.ajax({ url: url, dataType: 'html' }).then null, ->
      Loxgraph.statPrefix = '/'
      $.ajax { url: Loxgraph.statPrefix + url, dataType: 'html' }

  @parseHtml: (htmlDoc) =>
    stats = {}
