This is an example implementation of Mappa (github.com/Wolfy87/Mappa)
So all you need to do is include the Mappa script which you can download from the repo. The minified version is absolutely tiny.
Then include toolbox.js. Then what do ya know! It just works. Now if you scroll to the bottom of toolbox.js you will see the mappings. It is self explaining documentation. To learn about the functions you will need to go to their respective docs which are linked to from the read me. The read me can be found in the repository.
For example, here is how you dump all of the cookies from the page.