Updated term.js to latest version.
  Also rewrote the way its loaded to match the term.js example,
  replacing socket.io with websocket.