       route + '?ajax=true'
 
 RouterBuilder = ($routeProvider) ->
-    new Router($routeProvider).bindRoutes()
+    new Router($routeProvider)._bindRoutes()
 
 app = angular.module('teddy')
 

  constructor: ($routeProvider) ->
    this.provider = $routeProvider

  bindRoutes: () ->
    _.each(this.directRoutes, this._setRouteConfig)
    _.each(this.customRoutes, this._setRouteConfig)


      config = {}

    config = _.extend({}, this.defaultConfig, {
      templateUrl: this._buildTemplateFor(route)
    }, config)

    this.provider.when(route, config)

  _buildTemplateFor: (route)->
    (params) ->
      if params != undefined
        window.d = params
