         return events.fetch
             success: (eventCollection) ->
                 VIE.cleanup()
-                data = data.replace(data.substring(data.indexOf('<body'),data.lastIndexOf('</body')).replace(/^[^>]+>/,''), jQuery('body', html).html())
-                return response.send data
+                return response.send window.document.innerHTML
 
 server.get '/foo', (req, resp) ->
     html = jQuery('html')

express = require 'express'
io = require 'socket.io'
Backbone = require 'backbone'
VIE = require '../js/vie.js'
require './vie-redis.coffee'
fs = require 'fs'
jQuery = require 'jquery'

server = express.createServer()
server.configure -> 

# Serve the index file for /
server.get '/meetings', (request, response) ->
    return fs.readFile "#{process.cwd()}/meetings.html", "utf-8", (err, data) ->
        document = jsdom.jsdom data
        window = document.createWindow()
        jQ = jQuery.create window
        # Find RDFa entities and load them
        VIE.RDFaEntities.getInstances jQ "*"
        # Get the Calendar object
        calendar = VIE.EntityManager.getBySubject '/meetings'
        
