       @polyfill() if @polyfill?
 
     load: ->
-      self = this
-      $.getScript("assets/views/outer/#{@name}/#{@name}.hamlc", ->
-        $ -> self.render()
-      )
+      $.getScript("/assets/views/outer/#{@name}/#{@name}.hamlc", => @render())
 
     scroll: (hash) ->
       if hash == '' or hash == '#' then hash = "body"
       $('html, body').animate({scrollTop: $(hash).offset().top}, 0);
 
     display: ->
-      if HAML? and HAML[@name]? @render() else @load()
+      if HAML? and HAML[@name]?
+        @render()
+      else
+        @load()
 
   # Pages
   home = new Page("home", "Continuous Integration made easy")


# Global polyfills
if $.browser.msie and $.browser.version > 6 and $.browser.version < 9
  $.getScript("assets/js/vendor/selectivizr-1.0.2.js")

# Run the application
$ -> circle.run window.location.pathname

  # Per-Page Polyfills
  polyfill = ->
    if !Modernizr.input.placeholder
      $.getScript("/assets/js/vendor/jquery.placeholder.js", ->
        $("input, textarea").placeholder()
      )
  about.polyfill = polyfill
