   h = $(window).height() * 0.7
   $('#console').height(h)
   $('#source').height(h)
+
+ps1 = -> node.process.cwd() + '$ '
 
 $(window).resize(onResize)
 

    node.fs.exists dir, (doesExist) ->
      if doesExist
        node.process.chdir(dir)
      else
        controller.message "Directory #{dir} does not exist.\n", 'error', true
      controller.reprompt()


  jqconsole = $('#console')
  controller = jqconsole.console
    promptLabel: ps1()
    commandHandle: (line) ->
      [cmd,args...] = line.trim().split(/\s+/)
      if cmd == '' then return true
