   delete $http.defaults.headers.common['X-Requested-With']
 
   $scope.$on "$routeChangeSuccess", ($currentRoute, $previousRoute) ->
-    $scope.worldId = $routeParams.worldId
+    $scope.worldId = parseInt($routeParams.worldId)
 
   Worlds = $resource('https://api.guildwars2.com/v1/world_names.json')
   Matches = $resource('https://api.guildwars2.com/v1/wvw/matches.json')

  timer = null
  $scope.interval = 0

  $scope.worlds = Worlds.query()
  $scope.redWorld = {}
  $scope.blueWorld = {}
  $scope.greenWorld = {}

angular = window.angular
console = window.console

app = angular.module('gw2App', ['ngResource'])

