 
 landingUserStatsInitialize = =>
   console.log 'landingUserStatsInitialize called'
+  landingUserStatsElements = document.getElementsByClassName('js-landing-graph')
   return if !landingUserStatsElements[0]?
 
   landingUserStatsElements[0].chart ?= new LandingUserStats


    @stats = osu.parseJson('json-stats')

    # Define area
    @area = d3.svg.area().interpolate('basis')
      .x (d) =>

        @yScale d.users_osu

  modelStats: (data) ->
    @svg = d3.select '.js-landing-graph'
    @svg.select('svg').remove()
    # Define svg canvas
    @svg = @svg
      .append 'svg'
