replit/jq-console — pull request #32 by chmp (2012-10-05 14:18:24+00:00)
Title: Add minor convenience methods

These three commits add the following convenience methods

- GetHistory: Get the current history array
- SetHistory: Set the current history array
- AddNode: Add a DOM node directly.

Furhtermore the octal escape sequence for the escape charater is replaced with the equvivalent hex escape.

The rational behind the changes are:

- Set/GetHistory: this allows for easy storing of the histroy in localStorage. Example:
```javascript
localStorage.setItem("jqhist", JSON.stringify(jqconsole.GetHistory()));
this.jqconsole.SetHistory(JSON.parse(localStorage.getItem("jqhist")));
```

- AddNode: Allows for images, etc.. inside the console, similar to IPython's display. Example:
```javascript
jqconsole.AddNode($('').attr("src", "http://test/image.png"))
```