TypeError: undefined is not a function error using jsDom under Node.js

I have an html page named client.html and I am trying to append the paragraph and article elements to it's body via using jsDOM under Node.js, however I am running into some difficulties:

This is my console output and error:

    Got kicked!
    Created DOM object named window
    Queried the database!

    /noderoot/jsdomExample/connect.js:34
     $("body").append("<p> Added!         courtesy of DOM</p>");
                                                    ^
    TypeError: undefined is not a function
    at http.createServer.request.on.jsdom.env.done [as callback] 
    (/noderoot      /jsdomExample/connect.js:34:8)
     at p.handleReadyForQuery (/noderoot/jsdomExample/node_modules/pg/lib/native 
    /query.js:77:10)
   at Connection.connection.on.clientBuilder.port (/noderoot/jsdomExample/node_modules 
     /pg/lib/native/index.js:200:31)
    at Connection.EventEmitter.emit (events.js:93:17)

Here's the pastebin link to my source: http://pastebin.com/v51zv7nz

All advice appreciated thanks! Essentially I want jsDOM to add the html elements to client.html when the server is run, however I've ran into the errors as described above. I am using the latest version of Node.js and jsDom.