 			
 			# Give a few extra ms for form logic.
 			delay + WINDOW_RENDER_TIME
-				
+		
 	(req, res, next) ->
 		{path} = url.parse req.url
 		

				domain: get: -> 'localhost'
			)
			
			# Set up a DOM starting with our entry point.
			document = jsdom(
				index
				null
				url: "http://localhost:#{http.port()}/shrub-entry-point"
			)
			
			# Hax for XMLHttpRequest
			document.cookie = cookie
			document._cookieDomain = 'localhost'
			
			window = document.createWindow()
			
			# Capture console logs.
			window.console = logger
			
			# Hack in WebSocket.

			# Inject Angular services so we can get up in its guts.
			shrub = window.shrub = {}
			injected = [
				'$location', '$rootScope', '$route', '$sniffer'
				'forms', 'socket'
			]
			invocation = injected.concat [
				-> shrub[inject] = arguments[i] for inject, i in injected
